const uniPackage = {
	wxLogin(params) {
		return new Promise((resolve, reject) => {

			uni.login({
				provider: 'weixin',
				...params,
				success: res => {
					console.log('login', res)
					resolve(res)
				},
				fail: err => {
					reject(err)
				}
			})
		})
	},
}

export  default uniPackage;
